﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shop.Model.Entity.Use
{
    /// <summary>
    /// 用户等级日志
    /// </summary>
    [SugarTable("use_user_grade_log")]
    public class UserGradeLog : BaseEntity
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 变化前等级
        /// </summary>
        public int ChangeFrontGrade { get; set; }

        /// <summary>
        /// 变化后等级
        /// </summary>
        public int ChangeLaterGrade { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 变化时间
        /// </summary>
        [SugarColumn(IsOnlyIgnoreInsert = true)]
        public DateTime ChangeTime { get; set; }
    }
}
